#ifndef WHEELEATER_H
#define WHEELEATER_H

#include <QMouseEvent>
#include <QObject>
#include <functional>

class WheelEater : public QObject
{
    Q_OBJECT
public:
    explicit WheelEater(std::function<bool(QWheelEvent*)> func, QObject *parent = nullptr);

private:
    std::function<bool(QWheelEvent*)> m_func;

    // QObject interface
public:
    bool eventFilter(QObject *watched, QEvent *event) override;
};

#endif // WHEELEATER_H
